/**
 * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 **/

.wishlist-container {
  padding: 2rem 0;
}

.wishlist-title {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

.wishlist-empty {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-size: 1.2rem;
}

.wishlist-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.wishlist-item {
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: white;
  padding-bottom: 1rem;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.wishlist-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.wishlist-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.wishlist-name {
  font-weight: bold;
  padding: 1rem 1rem 0.5rem;
  font-size: 1.1rem;
  color: #333;
}

.wishlist-price {
  padding: 0 1rem 1rem;
  font-size: 1.2rem;
  color: #e74c3c;
  font-weight: bold;
}

.wishlist-actions {
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  margin-top: auto;
}

.remove-from-wishlist {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 0.9rem;
}

.remove-from-wishlist:hover {
  background-color: #c0392b;
}

.view-product {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 0.9rem;
}

.view-product:hover {
  background-color: #2980b9;
}

.wishlist-back-button {
  display: block;
  margin: 2rem auto 0;
  background-color: #3498db;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.wishlist-back-button:hover {
  background-color: #2980b9;
}

.wishlist-loading,
.wishlist-error {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
}

.wishlist-error {
  color: #e74c3c;
}